package com.yanqu.road.entity.messageSubscribe.entity;

import java.util.Objects;

/**
 * @Description
 * @Author cwq
 * @Data 2023/5/8 20:29
 */
public class MessageSubscribeInfo {

    private long userId;

    private String templateId;
    /**
     * 触发这个消息推送的时间，有些推送需要记录 比例：探索完成
     */
    private long touchTime;

    /**
     * 游戏中是否订阅   (如果订阅了，推送完就会变成false)  （微信目前只支持一次性订阅）
     */
    private boolean isSubscribeOfGame;

    /**
     * 微信的设置中是否订阅
     */
    private boolean isSubscribeOfWx;

    /**
     * 订阅的次数
     */
    private int dingyueTimes;
    /**
     * 唤起的次数
     */
    private int huanqiTimes;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public long getTouchTime() {
        return touchTime;
    }

    public void setTouchTime(long touchTime) {
        if (!Objects.equals(this.touchTime, touchTime)) {
            this.touchTime = touchTime;
        }
    }

    public boolean isSubscribeOfWx() {
        return isSubscribeOfWx;
    }

    public void setIsSubscribeOfWx(boolean subscribeOfWx) {
        if (!Objects.equals(this.isSubscribeOfWx, subscribeOfWx)) {
            this.isSubscribeOfWx = subscribeOfWx;
        }
    }

    public boolean isSubscribeOfGame() {
        return isSubscribeOfGame;
    }

    public void setIsSubscribeOfGame(boolean subscribeOfGame) {
        if (!Objects.equals(this.isSubscribeOfGame, subscribeOfGame)) {
            this.isSubscribeOfGame = subscribeOfGame;
        }
    }

    public void setSubscribeOfGame(boolean subscribeOfGame) {
        isSubscribeOfGame = subscribeOfGame;
    }

    public void setSubscribeOfWx(boolean subscribeOfWx) {
        isSubscribeOfWx = subscribeOfWx;
    }


    public int getDingyueTimes() {
        return dingyueTimes;
    }

    public void setDingyueTimes(int dingyueTimes) {
        this.dingyueTimes = dingyueTimes;
    }

    public int getHuanqiTimes() {
        return huanqiTimes;
    }

    public void setHuanqiTimes(int huanqiTimes) {
        this.huanqiTimes = huanqiTimes;
    }
}
